using System.Data.Entity;
using System.Data.Entity.Infrastructure;

namespace DataLayer.Model
{
    public class GameUPContext : DbContext
    {
        public DbSet<Administrator> Administrators { get; set; }
        public DbSet<CheerMessage> CheerMessages { get; set; }
        public DbSet<CheerMessagesGroup> CheerMessagesGroups { get; set; }
        //public DbSet<FitbitAccount> FitbitAccounts { get; set; }
        //public DbSet<FitbitData> FitbitDatas { get; set; }
        public DbSet<IndoorExercisePersonal> IndoorExercisePersonals { get; set; }
        public DbSet<IndoorExerciseResult> IndoorExerciseResults { get; set; }
        //public DbSet<IndoorExerciseType> IndoorExerciseTypes { get; set; }
        public DbSet<Message> Messages { get; set; }
        public DbSet<OutdoorExercise> OutdoorExercises { get; set; }
        public DbSet<OutdoorExerciseSocial> OutdoorExerciseSocials { get; set; }
        public DbSet<OutdoorExerciseSocial_CheerMessage> OutdoorExerciseSocial_CheerMessage { get; set; }
        public DbSet<Player> Players { get; set; }
        public DbSet<PlayerGroup> PlayerGroups { get; set; }
        public DbSet<Professional> Professionals { get; set; }
        public DbSet<SetTopBox> SetTopBoxes { get; set; }

        public GameUPContext()
            : base("Name=GameUPContext")
        {
            Database.SetInitializer<GameUPContext>(new GameUPInitializer());
        }
    }
}
